package com.soulless.general;

/**
 * @author zenglei
 * @Description 功能描述
 * @date 2022/11/17 10:10
 */
public class Client {

    public static void main(String[] args) {
        /**
         * 创建原型对象
         */
        ConcretePrototype prototype = new ConcretePrototype();
        prototype.setAge(18);
        prototype.setName("soulless");
        System.out.println(prototype);
        /**
         * 拷贝原型对象
         */
        ConcretePrototype cloneType = prototype.clone();
        System.out.println(cloneType);
    }

}
